package com.zte.sys.user.service;

import com.zte.sys.dept.model.Dept;
import com.zte.sys.position.model.Job;
import com.zte.sys.user.model.Users;
import com.zte.sys.user.model.UsersCondition;
import com.zte.util.PageModel;

import java.util.List;

public interface IUserService {

    /**
     * 用户分页条件查询
     * @param pageModel
     * @param conn
     * @return
     */
    public PageModel<Users> queryUserPageByCondition(UsersCondition conn,PageModel<Users> pageModel);
    public List<Dept> queryDeptList(String deptId);
    public List<Job> queryJobList(String jobId);

    /**
     * 用户详情
     * @param conn
     * @return
     */
    public Users queryUserByCondition(UsersCondition conn);

    /**
     * 添加用户
     * @param user
     * @return
     */
    public int addUser(Users user);

    /**
     * 修改用户
     * @param user
     * @return
     */
    public int updateUser(Users user);

    /**
     * 撤职修改
     * @param users
     * @return
     */
    public int updateStatusId(Users users);
}
